import request from "@/utils/request";

// 查询客户标签信息列表
export function listBizCustomerTag(query) {
  return request({
    url: "/biz/bizCustomerTag/list",
    method: "get",
    params: query,
  });
}

// 查询客户标签信息详细
export function getBizCustomerTag(id) {
  return request({
    url: "/biz/bizCustomerTag/" + id,
    method: "get",
  });
}

// 新增客户标签信息
export function addBizCustomerTag(data) {
  return request({
    url: "/biz/bizCustomerTag",
    method: "post",
    data: data,
  });
}

// 修改客户标签信息
export function updateBizCustomerTag(data) {
  return request({
    url: "/biz/bizCustomerTag",
    method: "put",
    data: data,
  });
}

// 删除客户标签信息
export function delBizCustomerTag(id) {
  return request({
    url: "/biz/bizCustomerTag/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCustomerTag/findMaxSort",
    method: "get",
  });
}
// 导出客户标签信息
export function exportBizCustomerTag(query) {
  return request({
    url: "/biz/bizCustomerTag/export",
    method: "get",
    params: query,
  });
}
// 批量新增
export function addBatch(data) {
  return request({
    url: "/biz/bizCustomerTag/addBatch",
    method: "post",
    data: data,
  });
}
